package chase.myrewards;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

/**
 * Register the application password entered by the user with the given username
 * Send to server user name, account password, and desired application password.
 * Server will couple the application password with the account.  This is just a
 * stubbed activity and does not do anything.
 * 
 * @author Meena Abdou
 **/ 
public class RegisterActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.register);
 
        Button registerBtn = (Button) findViewById(R.id.btnRegister);
        registerBtn.setOnClickListener(new View.OnClickListener() {
            public void onClick(View arg0) {
            	// Ideally, we would connect to the server and register 
                finish(); //for now, just go back to activity that started this activity
            }
        });
    }
    
    public void register(){
    	
    }
}
